import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Admin from "../Page/Admin";
import About from "../Page/About";
import Order from "../Page/Order";
import Person from "../Page/Person";
import Product from "../Page/Product";

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', redirect: '/admin/about'},
    { path: '/admin', component: Admin,
      children: [
        { path: 'about', component: About},
        { path: 'person', component: Person},
        { path: 'order', component: Order},
        { path: 'product', component: Product}
      ]
    }
  ]
})
